Ext.define('HIT.store.Company', {
    extend: 'Ext.data.TreeStore',
    
    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            storeId: 'companytree',   
           
            proxy: {         
                type: 'ajax',
                //url: 'resources/data/Company.json',
                url: 'getCompanies',
                reader: {
                    type: 'json',
                    root: ''
                }
            },
        
            root: {     
            	"id":0,
                "text": Share.T('根公司'),             
                "expanded": true
            }     
        }, cfg)]);
    }
});